import Vue from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import myAdminUi from './views/index'
import moment from 'moment';
import 'moment/locale/zh-cn'
moment.locale('zh-cn');
import 'xe-utils'
import VXETable from 'vxe-table'
import VXETablePluginAntd from 'vxe-table-plugin-antd'
import 'vxe-table/lib/style.css'
import 'vxe-table-plugin-antd/dist/style.css'

function dateFormat(value) {
  return moment(value).format('YYYY-MM-DD HH:mm:ss')
}
Vue.prototype.$dateFormat = dateFormat
Vue.prototype.$moment = moment

Vue.config.productionTip = false
Vue.use(Antd);
Vue.use(myAdminUi)

VXETable.use(VXETablePluginAntd)
Vue.use(VXETable)
new Vue({
  render: h => h(App),
}).$mount('#app')
